package com.powater.assetmanagementofxinyu.dao;

import com.powater.assetmanagementofxinyu.dto.userinfo.LoginMessageDto;
import com.powater.assetmanagementofxinyu.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface UserMapper {
    int deleteByPrimaryKey(Long userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> queryAllUser();

    String queryPermsById(Long userid);

    String queryNameById(Long userid);

    int selectNumByLogin(LoginMessageDto loginMessageDto);

    String selectPasswordByName(String username);

    User selectUserByName(String username);

    void addDeleteInfo(User user);
}